<?php

namespace bc\wx;

use bc\util\Util;
class JsApi
{
	
	/**
	 * @return array
	 */
	public function getJsApi($accessToken)
	{
		$url = 'https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token='.  $accessToken .'&type=jsapi';
		$str = Util::httpGet($url);
		return json_decode($str, true);
	}
}